package study.ct.com.retrofit_rxjava;

import android.app.Application;
import android.util.Log;

import study.ct.com.retrofit_rxjava.net.extension.BaseNetProvider;
import study.ct.com.retrofit_rxjava.net.retrofit.NetMgr;


/**
 * Created by ct on 2017/10/9 0009.
 */

public class MyApplication extends Application {
    private static final String TAG = "MyApplication";

    public static MyApplication application;

    public MyApplication(){
        super();
        Log.i(TAG, "MyApplication: =========");

        application=this;

        //init net struct  初始化网络请求框架，并制定默认NetProvider
        NetMgr.getInstance().registerProvider(new BaseNetProvider());
    }

    public static MyApplication getApplication(){
        return  application;
    }


}
